import React from 'react';
import { CountTitleStyled } from './style';
import { CountTitleStyled1 } from './style1';


interface CountTitlePropsType {
  title: any;
  smallTitle?: boolean;
}

const CountTitle: React.FC<CountTitlePropsType> = (props) => {
  return (
    props.smallTitle ?
      <CountTitleStyled>
        <div>
          <div className='text'>{props.title}</div>
        </div>  
      </CountTitleStyled> : <CountTitleStyled1>
        <div>
          <div className='text'> {props.title}</div>
        </div>
      </CountTitleStyled1>
  );
};

export default CountTitle;
